<template>
  <div class="app-header">
    <span class="left_icon fa fa-2x fa-angle-left returnThis" @click="returnLeave"></span>
    <span class="content">
      <slot></slot>
    </span>
    <span class="right_icon"></span>
  </div>
</template>

<script>
export default {
  name: 'app-header',
  methods: {
    returnLeave() {
      this.$router.go(-1);
    }
  }
}
</script>

<style scoped>


  .app-header{
    height: 80px;
    line-height: 90px;
    background: white;
    padding: 0 12px;
    color: #444;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9;
    border-bottom: 1px solid #ccc;
  }
  .returnThis{
    margin-left: 20px;
  }
</style>
